/*
 * Created on 2005-8-31
 */
package com.datawise.opencrud.metadata;


import com.datawise.opencrud.txtimport.ImportDataPersistentStrategy;
import com.datawise.opencrud.txtimport.TableBackuper;
import com.datawise.opencrud.txtimport.UploadFileResolver;

/**
 * 文本导入相关信息的元数据定义类。
 * 
 * @author wuzixiu
 * @author <a href="mailto:ljglory@126.com">Lujie</a>
 */
public class ImportMeta 
{
	/**字段分隔符*/
	private String delimiter;
	
	/**元数据信息*/
	private CrudMeta crudMeta;
	
	/**导入文件中包含的列名集合*/
	private String[] columnNames;
	
	/**使用的文件解析器*/
	private UploadFileResolver fileResolver;
	
	/**导入数据持续化策略*/
	private ImportDataPersistentStrategy importDataPersistentStrategy;
	
	/**备份表名*/
	private String backupTableName;
	
	/**表数据备份处理类*/
	private TableBackuper tableBackuper;
	

	/**
	 * @return Returns the crudMeta.
	 */
	public CrudMeta getCrudMeta() {
		return crudMeta;
	}
	/**
	 * @param crudMeta The crudMeta to set.
	 */
	public void setCrudMeta(CrudMeta crudMeta) {
		this.crudMeta = crudMeta;
	}

	
	/**
	 * @return Returns the delimiter.
	 */
	public String getDelimiter() {
		return delimiter;
	}
	/**
	 * @param delimiter The delimiter to set.
	 */
	public void setDelimiter(String delimiter) {
		this.delimiter = delimiter;
	}

	public String[] getColumnNames() {
		return columnNames;
	}
	public void setColumnNames(String[] columnNames) {
		this.columnNames = columnNames;
	}

	/**
	 * @return Returns the backupTableName.
	 */
	public String getBackupTableName() {
		return backupTableName;
	}
	/**
	 * @param backupTableName The backupTableName to set.
	 */
	public void setBackupTableName(String backupTableName) {
		this.backupTableName = backupTableName;
	}

	/**
	 * @return Returns the tableBackuper.
	 */
	public TableBackuper getTableBackuper() {
		return tableBackuper;
	}
	/**
	 * @param tableBackuper The tableBackuper to set.
	 */
	public void setTableBackuper(TableBackuper tableBackuper) {
		this.tableBackuper = tableBackuper;
	}
	
	
    /**
     * @return Returns the fileResolver.
     */
    public UploadFileResolver getFileResolver()
    {
        return fileResolver;
    }
    /**
     * @param fileResolver The fileResolver to set.
     */
    public void setFileResolver(UploadFileResolver fileResolver)
    {
        this.fileResolver = fileResolver;
    }
    
    
    /**
     * @return Returns the importDataPersistentStrategy.
     */
    public ImportDataPersistentStrategy getImportDataPersistentStrategy()
    {
        return importDataPersistentStrategy;
    }
    /**
     * @param importDataPersistentStrategy The importDataPersistentStrategy to set.
     */
    public void setImportDataPersistentStrategy(
            ImportDataPersistentStrategy importDataPersistentStrategy)
    {
        this.importDataPersistentStrategy = importDataPersistentStrategy;
    }
}
